﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using MovieBuddy.Helpers;
using MovieModel.Model;

namespace MovieModelTest
{
    [TestClass]
    public class MovieDetectorTest
    {

        [TestMethod]
        public void Blah()
        {
            
        }

        [TestMethod]
        public void TestProperCase()
        {
            var manager = new Mock<Manager>();
            manager.Setup(m => m.Movies).Returns(new Dictionary<int, Movie>());
            MovieDetector detector = new MovieDetector(manager.Object);
            Assert.AreEqual("John McClain Kills The Bad Guys", detector.CleanMovieTitle("John McClain KILLS_THE_bad_guys"));
            Assert.AreEqual("Star Wars: The Empire Strikes Back", detector.CleanMovieTitle("STAR_WARS:_THE_EMPIRE_STRIKES_BACK"));
        }
    }
}
